package com.akk.module.avs.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class AvsApplyCardExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AvsApplyCardExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCardIdIsNull() {
            addCriterion("card_id is null");
            return (Criteria) this;
        }

        public Criteria andCardIdIsNotNull() {
            addCriterion("card_id is not null");
            return (Criteria) this;
        }

        public Criteria andCardIdEqualTo(Long value) {
            addCriterion("card_id =", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotEqualTo(Long value) {
            addCriterion("card_id <>", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThan(Long value) {
            addCriterion("card_id >", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdGreaterThanOrEqualTo(Long value) {
            addCriterion("card_id >=", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdLessThan(Long value) {
            addCriterion("card_id <", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdLessThanOrEqualTo(Long value) {
            addCriterion("card_id <=", value, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdIn(List<Long> values) {
            addCriterion("card_id in", values, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotIn(List<Long> values) {
            addCriterion("card_id not in", values, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdBetween(Long value1, Long value2) {
            addCriterion("card_id between", value1, value2, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardIdNotBetween(Long value1, Long value2) {
            addCriterion("card_id not between", value1, value2, "cardId");
            return (Criteria) this;
        }

        public Criteria andCardBankNameIsNull() {
            addCriterion("card_bank_name is null");
            return (Criteria) this;
        }

        public Criteria andCardBankNameIsNotNull() {
            addCriterion("card_bank_name is not null");
            return (Criteria) this;
        }

        public Criteria andCardBankNameEqualTo(String value) {
            addCriterion("card_bank_name =", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameNotEqualTo(String value) {
            addCriterion("card_bank_name <>", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameGreaterThan(String value) {
            addCriterion("card_bank_name >", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameGreaterThanOrEqualTo(String value) {
            addCriterion("card_bank_name >=", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameLessThan(String value) {
            addCriterion("card_bank_name <", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameLessThanOrEqualTo(String value) {
            addCriterion("card_bank_name <=", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameLike(String value) {
            addCriterion("card_bank_name like", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameNotLike(String value) {
            addCriterion("card_bank_name not like", value, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameIn(List<String> values) {
            addCriterion("card_bank_name in", values, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameNotIn(List<String> values) {
            addCriterion("card_bank_name not in", values, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameBetween(String value1, String value2) {
            addCriterion("card_bank_name between", value1, value2, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBankNameNotBetween(String value1, String value2) {
            addCriterion("card_bank_name not between", value1, value2, "cardBankName");
            return (Criteria) this;
        }

        public Criteria andCardBannerIsNull() {
            addCriterion("card_banner is null");
            return (Criteria) this;
        }

        public Criteria andCardBannerIsNotNull() {
            addCriterion("card_banner is not null");
            return (Criteria) this;
        }

        public Criteria andCardBannerEqualTo(String value) {
            addCriterion("card_banner =", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerNotEqualTo(String value) {
            addCriterion("card_banner <>", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerGreaterThan(String value) {
            addCriterion("card_banner >", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerGreaterThanOrEqualTo(String value) {
            addCriterion("card_banner >=", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerLessThan(String value) {
            addCriterion("card_banner <", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerLessThanOrEqualTo(String value) {
            addCriterion("card_banner <=", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerLike(String value) {
            addCriterion("card_banner like", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerNotLike(String value) {
            addCriterion("card_banner not like", value, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerIn(List<String> values) {
            addCriterion("card_banner in", values, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerNotIn(List<String> values) {
            addCriterion("card_banner not in", values, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerBetween(String value1, String value2) {
            addCriterion("card_banner between", value1, value2, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardBannerNotBetween(String value1, String value2) {
            addCriterion("card_banner not between", value1, value2, "cardBanner");
            return (Criteria) this;
        }

        public Criteria andCardDescIsNull() {
            addCriterion("card_desc is null");
            return (Criteria) this;
        }

        public Criteria andCardDescIsNotNull() {
            addCriterion("card_desc is not null");
            return (Criteria) this;
        }

        public Criteria andCardDescEqualTo(String value) {
            addCriterion("card_desc =", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescNotEqualTo(String value) {
            addCriterion("card_desc <>", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescGreaterThan(String value) {
            addCriterion("card_desc >", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescGreaterThanOrEqualTo(String value) {
            addCriterion("card_desc >=", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescLessThan(String value) {
            addCriterion("card_desc <", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescLessThanOrEqualTo(String value) {
            addCriterion("card_desc <=", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescLike(String value) {
            addCriterion("card_desc like", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescNotLike(String value) {
            addCriterion("card_desc not like", value, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescIn(List<String> values) {
            addCriterion("card_desc in", values, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescNotIn(List<String> values) {
            addCriterion("card_desc not in", values, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescBetween(String value1, String value2) {
            addCriterion("card_desc between", value1, value2, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardDescNotBetween(String value1, String value2) {
            addCriterion("card_desc not between", value1, value2, "cardDesc");
            return (Criteria) this;
        }

        public Criteria andCardUrlIsNull() {
            addCriterion("card_url is null");
            return (Criteria) this;
        }

        public Criteria andCardUrlIsNotNull() {
            addCriterion("card_url is not null");
            return (Criteria) this;
        }

        public Criteria andCardUrlEqualTo(String value) {
            addCriterion("card_url =", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlNotEqualTo(String value) {
            addCriterion("card_url <>", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlGreaterThan(String value) {
            addCriterion("card_url >", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlGreaterThanOrEqualTo(String value) {
            addCriterion("card_url >=", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlLessThan(String value) {
            addCriterion("card_url <", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlLessThanOrEqualTo(String value) {
            addCriterion("card_url <=", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlLike(String value) {
            addCriterion("card_url like", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlNotLike(String value) {
            addCriterion("card_url not like", value, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlIn(List<String> values) {
            addCriterion("card_url in", values, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlNotIn(List<String> values) {
            addCriterion("card_url not in", values, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlBetween(String value1, String value2) {
            addCriterion("card_url between", value1, value2, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardUrlNotBetween(String value1, String value2) {
            addCriterion("card_url not between", value1, value2, "cardUrl");
            return (Criteria) this;
        }

        public Criteria andCardDiscountIsNull() {
            addCriterion("card_discount is null");
            return (Criteria) this;
        }

        public Criteria andCardDiscountIsNotNull() {
            addCriterion("card_discount is not null");
            return (Criteria) this;
        }

        public Criteria andCardDiscountEqualTo(String value) {
            addCriterion("card_discount =", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountNotEqualTo(String value) {
            addCriterion("card_discount <>", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountGreaterThan(String value) {
            addCriterion("card_discount >", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountGreaterThanOrEqualTo(String value) {
            addCriterion("card_discount >=", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountLessThan(String value) {
            addCriterion("card_discount <", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountLessThanOrEqualTo(String value) {
            addCriterion("card_discount <=", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountLike(String value) {
            addCriterion("card_discount like", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountNotLike(String value) {
            addCriterion("card_discount not like", value, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountIn(List<String> values) {
            addCriterion("card_discount in", values, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountNotIn(List<String> values) {
            addCriterion("card_discount not in", values, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountBetween(String value1, String value2) {
            addCriterion("card_discount between", value1, value2, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardDiscountNotBetween(String value1, String value2) {
            addCriterion("card_discount not between", value1, value2, "cardDiscount");
            return (Criteria) this;
        }

        public Criteria andCardIndexIsNull() {
            addCriterion("card_index is null");
            return (Criteria) this;
        }

        public Criteria andCardIndexIsNotNull() {
            addCriterion("card_index is not null");
            return (Criteria) this;
        }

        public Criteria andCardIndexEqualTo(Integer value) {
            addCriterion("card_index =", value, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexNotEqualTo(Integer value) {
            addCriterion("card_index <>", value, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexGreaterThan(Integer value) {
            addCriterion("card_index >", value, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexGreaterThanOrEqualTo(Integer value) {
            addCriterion("card_index >=", value, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexLessThan(Integer value) {
            addCriterion("card_index <", value, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexLessThanOrEqualTo(Integer value) {
            addCriterion("card_index <=", value, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexIn(List<Integer> values) {
            addCriterion("card_index in", values, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexNotIn(List<Integer> values) {
            addCriterion("card_index not in", values, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexBetween(Integer value1, Integer value2) {
            addCriterion("card_index between", value1, value2, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardIndexNotBetween(Integer value1, Integer value2) {
            addCriterion("card_index not between", value1, value2, "cardIndex");
            return (Criteria) this;
        }

        public Criteria andCardStatusIsNull() {
            addCriterion("card_status is null");
            return (Criteria) this;
        }

        public Criteria andCardStatusIsNotNull() {
            addCriterion("card_status is not null");
            return (Criteria) this;
        }

        public Criteria andCardStatusEqualTo(Integer value) {
            addCriterion("card_status =", value, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusNotEqualTo(Integer value) {
            addCriterion("card_status <>", value, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusGreaterThan(Integer value) {
            addCriterion("card_status >", value, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("card_status >=", value, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusLessThan(Integer value) {
            addCriterion("card_status <", value, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusLessThanOrEqualTo(Integer value) {
            addCriterion("card_status <=", value, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusIn(List<Integer> values) {
            addCriterion("card_status in", values, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusNotIn(List<Integer> values) {
            addCriterion("card_status not in", values, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusBetween(Integer value1, Integer value2) {
            addCriterion("card_status between", value1, value2, "cardStatus");
            return (Criteria) this;
        }

        public Criteria andCardStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("card_status not between", value1, value2, "cardStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}